<?php

define('JS_EXT', '.js') ;

function javascript_getFile($file){
	static $_filesIncluded = array() ;
	
	if(in_array(strtolower($file), $_filesIncluded))
		return '';
		
	$string = '' ;
	if(file_exists(BASE_SITE.'js/'.$file.JS_EXT)) {
		$string = '<script type="" src="js/'.$file.JS_EXT.'"></script>' ;
		$_filesIncluded[] = strtolower($file) ;
	}
	return $string;
}

?>